package com.springboot.dto;

public class AssistantSeePatientView {
    private String logoLink;
    private String patientName;
    private String orderDate;
    private String orderTime;
    private String sickName;
    private String patientTel;

    public AssistantSeePatientView(){}

    public AssistantSeePatientView(String logoLink, String patientName, String orderDate, String orderTime, String sickName, String patientTel) {
        this.logoLink = logoLink;
        this.patientName = patientName;
        this.orderDate = orderDate;
        this.orderTime = orderTime;
        this.sickName = sickName;
        this.patientTel = patientTel;
    }

    public int setValue(AssistantSeePatientView assistantSeePatientView) {
        this.logoLink = assistantSeePatientView.logoLink;
        this.patientName = assistantSeePatientView.patientName;
        this.orderDate =assistantSeePatientView. orderDate;
        this.orderTime = assistantSeePatientView.orderTime;
        this.sickName =assistantSeePatientView. sickName;
        this.patientTel =assistantSeePatientView. patientTel;
        return 1;
    }

    public String getLogoLink() {
        return logoLink;
    }

    public void setLogoLink(String logoLink) {
        this.logoLink = logoLink;
    }

    public String getPatientName() {
        return patientName;
    }

    public void setPatientName(String patientName) {
        this.patientName = patientName;
    }

    public String getOrderDate() {
        return orderDate;
    }

    public void setOrderDate(String orderDate) {
        this.orderDate = orderDate;
    }

    public String getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(String orderTime) {
        this.orderTime = orderTime;
    }

    public String getSickName() {
        return sickName;
    }

    public void setSickName(String sickName) {
        this.sickName = sickName;
    }

    public String getPatientTel() {
        return patientTel;
    }

    public void setPatientTel(String patientTel) {
        this.patientTel = patientTel;
    }

    @Override
    public String toString() {
        if(logoLink!=null)
        {
            logoLink=logoLink.replaceAll("","");
        }
        return "{" +
                "\"logoLink\":\"" + logoLink + '\"' +
                ", \"patientName\":\"" + patientName + '\"' +
                ", \"orderDate\":\"" + orderDate + '\"' +
                ", \"orderTime\":\"" + orderTime + '\"' +
                ", \"diseaseName\":\"" + sickName + '\"' +
                ", \"patientTel\":\""+ patientTel + '\"' +
                '}';
    }
}
